package com.jiangjiang.eshop.schedule.convert;

import com.jiangjiang.eshop.schedule.domain.ScheduleOrderSendOutDetailEntity;
import com.jiangjiang.eshop.wms.dto.SaleDeliveryOrderSendOutDetailDTO;
import com.jiangjiang.eshop.schedule.dto.ScheduleOrderSendOutDetailDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

/**
 * @ClassName ScheduleOrderSendOutDetailConvert
 * @Description TODO
 * @Author jhw
 * @Date 2021/8/31 7:06
 * @Version 1.0
 **/
@Mapper(componentModel = "spring")
public interface ScheduleOrderSendOutDetailConvert {

    List<ScheduleOrderSendOutDetailDTO> convertEntities2DTOList(List<ScheduleOrderSendOutDetailEntity> entities);

    List<ScheduleOrderSendOutDetailEntity> convertDTOList2Entities(List<ScheduleOrderSendOutDetailDTO> sendOutDetails);


    @Mapping(target ="id",ignore = true)
    SaleDeliveryOrderSendOutDetailDTO convertDTO2SaleDeliveryOrderSendOutDetailDTO(ScheduleOrderSendOutDetailDTO dto);

    List<SaleDeliveryOrderSendOutDetailDTO> convertDTOSListSaleDeliveryOrderSendOutDetailDTO(List<ScheduleOrderSendOutDetailDTO> detailDTOList);

}
